tabbing

Vanilla javascript Trap Focus in modal (accessibility tabbing )

[亡魂溺海] 提交于 2021-02-10 12:36:19
问题 This should be pretty simple but for some reason it isn't working, I'm getting the proper console.logs at the right time, but the focus isn't going to the correct place, please refer to my jsfiddle https://jsfiddle.net/bqt0np9d/ function checkTabPress(e) { "use strict"; // pick passed event of global event object e = e || event; if (e.keyCode === 9) { if (e.shiftKey) { console.log('back tab pressed'); firstItem.onblur=function(){ console.log('last a focus left'); lastItem.focus(); }; e

Vanilla javascript Trap Focus in modal (accessibility tabbing )

℡╲_俬逩灬. 提交于 2021-02-10 12:35:16
问题 This should be pretty simple but for some reason it isn't working, I'm getting the proper console.logs at the right time, but the focus isn't going to the correct place, please refer to my jsfiddle https://jsfiddle.net/bqt0np9d/ function checkTabPress(e) { "use strict"; // pick passed event of global event object e = e || event; if (e.keyCode === 9) { if (e.shiftKey) { console.log('back tab pressed'); firstItem.onblur=function(){ console.log('last a focus left'); lastItem.focus(); }; e

Windows Form - Tab key does not work in a child panel

十年热恋 提交于 2020-01-04 01:36:11
问题 I have a child panel in a form which contains some text boxes and buttons. I tried setting tabstop and tabindex properties for these controls so that the user can tab from one control to the next. But for some reason the tabbing does not work, the curor stays on the same field which has the focus when I press the tab key. I am using C# with .Net 3.5 framework. Below is how my code looks like - rightPanel.Controls.Clear(); marketMessageLabel = new Label(); marketMessageLabel.Location = new

Maintaining focus on ajax update panel after updating form

二次信任 提交于 2020-01-02 08:54:30
问题 I've have a formview that is designed to update it's datasource each time a text_changed event or dropdown list has been changed. On every text_changed event and equivalent for other controls I call the formView.UpdateItem method and this causes the form to lose focus from the control I have tabbed down to. I've tried to implement this method but I get unknown runtime errors after I have tried to select a control for the second time. I can't help but think there is another way of dealing with

Tab key not working in popup in chrome extension

China☆狼群 提交于 2019-12-18 15:34:33
问题 I have created a chrome extension that has a popup with the following HTML markup in it: <html> <head> <style> body { font-family: 'Open Sans',arial,sans-serif; background-color: #E5E5E5; font-size: 13px; text-shadow: 0px 1px rgba(255, 255, 255, 0.5); } </style> </head> <script type="text/javascript">function sendRequest(s,r){ chrome.tabs.getSelected(null, function(tab) { chrome.tabs.sendRequest(tab.id, {search:s , replace:r}, function(response) { console.log(response.farewell); }); }); }; <

Unsure tabbing with Pascal [closed]

给你一囗甜甜゛ 提交于 2019-12-13 08:03:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Hi I'm trying to tab some code, please could someone check to make sure I have done this correctly (Changed some code for simplicity): begin if Password <> Database['Database'] then showmessage ('Message') else if NewPassword <> Retype then showmessage ('Message') else begin

How to get -moz-user-focus: ignore to work?

懵懂的女人 提交于 2019-12-13 03:38:35
问题 My understanding is that when using -moz-user-focus: ignore (see doc) on an element, Firefox should skip that element when tabbing. However, try: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body> <form action="/"> <input type="text" value="First"> <input type="text" value=

Setting a custom tab order in a Cocoa application

梦想与她 提交于 2019-12-08 04:11:00
问题 I have a window with two columns of fields. On the left, there is an NSTableView and an NSTokenField , and on the right, there are two NSTextField s. I want the tab order to go down the left, then down the right. (So the order should be NSTableView , NSTokenField , NSTextField , NSTextField in my window.) However, Cocoa appears to be determining its own preferred order, going from the top to the bottom. The NSTokenField is positioned lower in the window than any other control, so it will

Maintaining focus on ajax update panel after updating form

房东的猫 提交于 2019-12-06 11:04:00
I've have a formview that is designed to update it's datasource each time a text_changed event or dropdown list has been changed. On every text_changed event and equivalent for other controls I call the formView.UpdateItem method and this causes the form to lose focus from the control I have tabbed down to. I've tried to implement this method but I get unknown runtime errors after I have tried to select a control for the second time. I can't help but think there is another way of dealing with this. How would you go about solving this issue? For things like this, I often stash the value in an

Tab key not working in popup in chrome extension

六月ゝ 毕业季﹏ 提交于 2019-11-30 13:04:12
I have created a chrome extension that has a popup with the following HTML markup in it: <html> <head> <style> body { font-family: 'Open Sans',arial,sans-serif; background-color: #E5E5E5; font-size: 13px; text-shadow: 0px 1px rgba(255, 255, 255, 0.5); } </style> </head> <script type="text/javascript">function sendRequest(s,r){ chrome.tabs.getSelected(null, function(tab) { chrome.tabs.sendRequest(tab.id, {search:s , replace:r}, function(response) { console.log(response.farewell); }); }); }; </script> <body> <label for="search">Search for</label><input name="search" id="search"></input> <label