Home

Enhancment: Maintain per-tab input settings

%3CLINGO-SUB%20id%3D%22lingo-sub-746986%22%20slang%3D%22en-US%22%3EEnhancment%3A%20Maintain%20per-tab%20input%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-746986%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22line%22%3E%3CSTRONG%3Etl%3Bdr%3A%3C%2FSTRONG%3EWhen%20using%20multiple%20keyboard%20layouts%2C%20it's%20would%20be%20very%20useful%20if%20Edge%20would%20remember%20the%20last%20used%20layout%20for%20each%20tab.%20This%20would%20save%20us%20from%20having%20to%20alt%2Bshift%20every%20time%20we%20change%20tabs.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1791608640%22%20id%3D%22toc-hId-1791608640%22%20id%3D%22toc-hId-1791608640%22%20id%3D%22toc-hId-1791608640%22%3E%3CSPAN%20class%3D%22line%22%3ELonger%20version%3A%3C%2FSPAN%3E%3C%2FH2%3E%3CH3%20id%3D%22toc-hId--957061826%22%20id%3D%22toc-hId--957061826%22%20id%3D%22toc-hId--957061826%22%20id%3D%22toc-hId--957061826%22%3E%3CSPAN%20class%3D%22line%22%3EBackground%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EIn%20countries%20where%20the%20native%20script%20is%20not%20Latin%2C%20one%20finds%20oneself%20needing%20to%20use%20multiple%20keyboard%20layouts%20-%20one%20for%20Latin%20input%20and%20another%20for%20the%20native%20script%20input.%20Often%2C%20one%20works%20within%20multiple%20contexts%20wherein%20each%20context%20requires%20a%20different%20keyboard%20layout.%20e.%20g.%20a%20programmer%20will%20have%20one%20window%20open%20for%20coding%20(which%20requires%20an%20English%20layout)%20and%20one%20window%20for%20instant%20messaging%20(which%20will%20typically%20be%20in%20his%20native%20script).%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EIt%20begins%20to%20become%20somewhat%20of%20pain%20to%20change%20keyboard%20layout%20each%20time%20one%20switches%20context.%20Operating%20systems%20recognize%20this%20and%20offer%20an%20option%20to%20localize%20the%20keyboard%20layout%20setting%20to%20the%20program%20in%20use%2C%20such%20that%20when%20switching%20programs%20the%20keyboard%20layout%20will%20switch%20automatically.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22line%22%3ENowadays%2C%20much%20of%20a%20users%20life%20may%20be%20spent%20inside%20the%20browser%2C%20seeing%20as%20so%20much%20can%20be%20done%20from%20within%20the%20browser%2C%20e.g.%20coding%2C%20messaging%2C%20document%20editing%2C%20shopping%20etc.%20etc.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EIt%20is%20common%20to%20need%20different%20keyboard%20layouts%20within%20different%20browsing%20contexts%2C%20e.g.%20coding%20and%20shopping%20may%20require%20an%20English%20layout%20whereas%20messaging%20and%20editing%20documents%20will%20typically%20require%20a%20users%20native%20language%20layout.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22line%22%3EHowever%2C%20the%20OS%20level%20segregation%20of%20input%20settings%20per%20program%20will%20not%20be%20of%20use%20within%20the%20browser%20since%20at%20an%20OS%20level%20all%20tabs%20are%20recognized%20as%20one%20program.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22line%22%3EIt%20would%20therefore%20be%20a%20HUGE%20productivity%20enhancement%20if%20Edge%20would%20fill%20in%20this%20gap%20and%20maintain%20different%20input%20settings%20per%20tab.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH3%20id%3D%22toc-hId-785748509%22%20id%3D%22toc-hId-785748509%22%20id%3D%22toc-hId-785748509%22%20id%3D%22toc-hId-785748509%22%3E%3CSPAN%20class%3D%22line%22%3EHow%20would%20it%20work%3F%3C%2FSPAN%3E%3C%2FH3%3E%3CDIV%20class%3D%22comment-body%22%3E%3CSPAN%20class%3D%22line%22%3EIt%20would%20require%20splitting%20the%20Edge%20UI%20into%20multiple%20%22input%20regions%22.%20An%20input%20region%20for%20this%20purpose%20is%20an%20area%20in%20the%20UI%20that%20would%20make%20sense%20to%20maintain%20it's%20own%20input%20method.%20I%20would%20suggest%20that%20a%20primary%20window%20will%20contain%20one%20region%20for%20the%20omnibox%20and%20a%20further%20additional%20region%20for%20each%20tab%20contained%20within%20the%20window.%20%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EEach%20%22input%20region%22%20will%20maintain%20a%20property%20representing%20the%20input%20method%20set%20for%20that%20region.%20This%20will%20be%20initially%20set%20to%20the%20%22default%20input%20method%22%20(the%20%22default%20input%20method%20may%20be%20determined%20using%20an%20OS%20level%20preference%20or%20a%20local%20application%20preference).%20%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EAs%20areas%20that%20accept%20user%20input%20are%20created%2C%20they%20will%20be%20assigned%20to%20an%20%22input%20region%22.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EThe%20application%20will%20listen%20out%20for%20input%20method%20changes%20(this%20can%20be%20accomplished%20on%20Windows%20by%20listening%20for%20WM_INPUTLANGCHANGE)%20and%20determine%20the%20%22input%20region%22%20in%20which%20this%20change%20was%20requested%20(i.e.%20which%20region%20had%20input%20focus%20when%20the%20keyboard%20layout%20was%20changed).%20The%20application%20will%20then%20save%20the%20requested%20input%20method%20in%20the%20%22input%20method%22%20property%20of%20that%20region.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EWhenever%20the%20input%20focus%20changes%20within%20the%20application%2C%20it%20will%20automatically%20change%20the%20systems%20input%20method%20to%20match%20the%20%22input%20method%22%20property%20of%20the%20region%20to%20which%20the%20current%20input%20box%20is%20assigned.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22line%22%3EHope%20this%20all%20makes%20sense%20to%20someone%20%3A)%3C%2Fimg%3E%20as%20I%20am%20pretty%20keen%20to%20see%20this%20adopted...%20anyone%20I%20mention%20the%20idea%20to%20seems%20quite%20positive%20about%20it...%3C%2FSPAN%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22edit-slot%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-748556%22%20slang%3D%22en-US%22%3ERe%3A%20Enhancment%3A%20Maintain%20per-tab%20input%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-748556%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373973%22%20target%3D%22_blank%22%3E%40yzahn%3C%2FA%3E%2C%20this%20is%20a%20great%20suggestion!%20I%20will%20follow%20up%20with%20our%20globalization%20champion%20and%20see%20what%20he%20says.%3C%2FP%3E%0A%3CP%3EThanks%20-%20Elliot%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-748590%22%20slang%3D%22en-US%22%3ERe%3A%20Enhancment%3A%20Maintain%20per-tab%20input%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-748590%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239638%22%20target%3D%22_blank%22%3E%40Elliot%20Kirk%3C%2FA%3E%26nbsp%3BThat%20would%20be%20great!%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E
yzahn
Occasional Contributor

tl;dr: When using multiple keyboard layouts, it's would be very useful if Edge would remember the last used layout for each tab. This would save us from having to alt+shift every time we change tabs.

 

Longer version:

Background


In countries where the native script is not Latin, one finds oneself needing to use multiple keyboard layouts - one for Latin input and another for the native script input. Often, one works within multiple contexts wherein each context requires a different keyboard layout. e. g. a programmer will have one window open for coding (which requires an English layout) and one window for instant messaging (which will typically be in his native script).


It begins to become somewhat of pain to change keyboard layout each time one switches context. Operating systems recognize this and offer an option to localize the keyboard layout setting to the program in use, such that when switching programs the keyboard layout will switch automatically.

 

Nowadays, much of a users life may be spent inside the browser, seeing as so much can be done from within the browser, e.g. coding, messaging, document editing, shopping etc. etc.


It is common to need different keyboard layouts within different browsing contexts, e.g. coding and shopping may require an English layout whereas messaging and editing documents will typically require a users native language layout.

 

However, the OS level segregation of input settings per program will not be of use within the browser since at an OS level all tabs are recognized as one program.

 

It would therefore be a HUGE productivity enhancement if Edge would fill in this gap and maintain different input settings per tab.

 

How would it work?

It would require splitting the Edge UI into multiple "input regions". An input region for this purpose is an area in the UI that would make sense to maintain it's own input method. I would suggest that a primary window will contain one region for the omnibox and a further additional region for each tab contained within the window.

Each "input region" will maintain a property representing the input method set for that region. This will be initially set to the "default input method" (the "default input method may be determined using an OS level preference or a local application preference).

As areas that accept user input are created, they will be assigned to an "input region".

The application will listen out for input method changes (this can be accomplished on Windows by listening for WM_INPUTLANGCHANGE) and determine the "input region" in which this change was requested (i.e. which region had input focus when the keyboard layout was changed). The application will then save the requested input method in the "input method" property of that region.

Whenever the input focus changes within the application, it will automatically change the systems input method to match the "input method" property of the region to which the current input box is assigned.

Hope this all makes sense to someone :) as I am pretty keen to see this adopted... anyone I mention the idea to seems quite positive about it...
 
 
2 Replies

Hi @yzahn, this is a great suggestion! I will follow up with our globalization champion and see what he says.

Thanks - Elliot

@Elliot Kirk That would be great! Thanks!